package cn.aws360.boot.system.biz.domain;

import cn.aws360.boot.data.api.pojo.domain.BaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * @author junnan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_menu")
@EqualsAndHashCode(callSuper = true)
public class SysMenu extends BaseDO {

    /**
     * 菜单 id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 上级菜单 pid
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 菜单名称
     */
    @TableField("name")
    private String name;

    /**
     * 菜单名称
     */
    @TableField("type")
    private Integer type;

    /**
     * 菜单排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 菜单图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 路由地址
     */
    @TableField("path")
    private String path;

    /**
     * 权限标识
     */
    @TableField("perm")
    private String perm;

    /**
     * 页面组件
     */
    @TableField("component")
    private String component;

}
